home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-02-07 | 1.9 KB | 117 lines | [TEXT/PJMM] |
- unit MyADBGlobals;
-
- interface
-
- uses
- OSIntf, PrintTraps;
-
- const
-
- {window constants}
- ZoomBox = 8; {window type}
- MinWidth = 80;
- MinHeight = 80;
- mBarHeightGlobal = $BAA;
- GrayRgnLowMemGlobal = $9EE;
- sBarWidth = 16;
- TEMax = 32767;
-
- rsrc = 'ADBx'; {creator bytes restype}
-
- {dialog stuff}
- AboutDialog = 256;
- MessageDialog = 258;
- AlertDialog = 260;
-
- { menu res id's}
- AppleMenu = 256;
- FileMenu = 257;
- EditMenu = 258;
-
- MenuCount = 3;
- AppleM = 1;
- FileM = 2;
- EditM = 3;
-
- {menu items}
- aAbout = 1;
-
- fADB = 1;
- fSave = 3;
- fSaveAs = 4;
- fPageSet = 5;
- fPrint = 6;
- fQuit = 8;
-
- eUndo = 1;
- eCut = 3;
- eCopy = 4;
- ePaste = 5;
- eClear = 6;
-
- versRequested = 1;
- numlock = 1;
- capslock = 2;
- scrolllock = 4;
-
- envBadVers = -5501;
- envVersTooBig = -5502;
- type
-
- LongAndByte = record
- case integer of
- 1: (
- longView: LongInt
- );
- 2: (
- byteView: record
- byte0: SignedByte;
- byte1: Signedbyte;
- byte2: Signedbyte;
- byte3: Signedbyte;
- end;
- );
- end;
-
- var
-
- {my misc stuff}
- Finished: boolean;
- mBarHeight: Integer;
-
- {menu stuff}
- myMenus: array[1..MenuCount] of MenuHandle;
-
- {rectangles}
- DragArea: Rect; {window drag area}
- GrowArea: Rect; {window grow area}
- Screen: Rect; {physical screen area}
- ADBWindowRect: Rect; {beginning window size}
- ZoomRect: Rect; {zoomed window size}
- HCRect, VCRect, GrowRect: Rect; {scroller rects}
- DestRect, ViewRect: Rect; {text edit rects}
-
- {dialogs stuff}
- ItemHit: integer;
- dialogflg: boolean;
-
- {Window Stuff}
- ADBWindow: WindowPtr;
- ADBWindowPeek: WindowPeek;
- myTextHandle: TEHandle;
- VControl: ControlHandle;
- HControl: ControlHandle;
- myPrint: THPrint;
-
- {ADB Stuff}
- theWorld: SysEnvRec;
- OSEr: OSErr;
- numberofADBs: integer;
- info: ADBDataBlock;
- buf: ADBOpBlock;
- ADBAddr: ADBAddress;
- device: byte;
-
- implementation
-
- end.